<template>
  <div class="found-pay-page">
    <Back-top></Back-top>
    <Nav active-name=""/>
    <div class="breadcrumb-holder flex-row-v-center">
      <div class="item">首页</div>
      <img class="arrow" src="~assets/img/icon-right-arrow.png" />
      <div class="item active">{{ article.title }}</div>
    </div>

    <div class="sec-01" v-html="article.content"></div>
  </div>
</template>

<script>
import Core from "@/core/core";

export default {
  data() {
    return {
      article: {}
    }
  },
  mounted() {
    if (this.$route.query.id) {
      this.getArticleInfo(this.$route.query.id)
    }
  },
  methods: {
    getArticleInfo(id) {
      Core.Api.Article.info({id: id})
        .then(res => {
          this.article = res;
        })
        .catch(err => {
          this.$Message.error(err.msg);
        })
    }
  }
}
</script>

<style lang="scss" scoped>
.found-pay-page {
  background: rgb(245, 245, 245);

  .nav-holder {
    width: 100%;
    height: 66px;
    background: #ffffff;
    border-bottom: 1px solid #E6E8EB;

    .nav-box {
      width: 1200px;
      height: 100%;
      margin: auto;

      .logo-box {
        width: 258px;
      }

      .switch-box {
        height: 100%;

        .item {
          margin-right: 60px;
          font-size: 18px;
          color: #3A3D41;
          cursor: pointer;
          line-height: 62px;
          a {
            color: #3A3D41;
          }

          &.active {
            font-weight: 500;
            border-bottom: 4px solid #F58B01;
          }
        }
      }

      .search-box {
        background: #EEEEEF;
        border-radius: 20px;
        height: 40px;
        padding: 4px;

        .select-box {
          width: 120px;
          height: 32px;
          border-radius: 16px;
          background: #FFFFFF;
          border: 1px solid #E6E8EB;
        }

        .input {
          padding: 0 12px;
          font-size: 14px;
          color: #8D9197;
          border: none;
          background: transparent;
          height: 100%;
          outline: none;
        }

        .search-btn {
          width: 32px;
          height: 32px;
          border-radius: 50%;
          cursor: pointer;

          img {
            width: 32px;
            height: 32px;
          }
        }
      }
    }
  }

  .breadcrumb-holder {
    width: 1200px;
    height: 62px;
    margin: auto;
    .item {
      font-weight: 500;
      font-size: 16px;
      color: #A6ACB3;
      cursor: pointer;
      &.active {
        color: #3A3D41;
      }
    }
    .arrow {
      margin: 0 10px;
      width: 16px;
      height: 16px;
    }
  }

  .sec-01 {
    width: 1200px;
    margin: auto;
    background: #ffffff;
    padding: 40px;

    .item-box {
      margin-top: 20px;
      &:first-child {
        margin-top: -10px;
      }
      .title {
        font-size: 18px;
        color: #000000;
        font-weight: 500;
        padding: 10px 0;
      }
      p {
        font-size: 14px;
        color: #3A3D41;
        line-height: 26px;
      }
    }
  }
}
</style>
